Set Window's Minimum size when using P2D

Oh, I meant resizing the window manually, not programmatically.