Restrict the minimum dimensions of a resized window.