Support maximize/minimize on caption area

When a user double clicks the caption area the form window state should toggle
between either maximized or normal.