Implement maximizing by dragging to top, and minimum dimensions.