This demo shows window flow: maximizing, minimizing, restoring and showing.

"Default options" is a window with default options, where "Custom durations" is a window with some custom animation durations set. Refer to "Code required" window to see details.

Custom buttons in "Custom durations" window will trigger methods maximize and minimize with custom durations.