When a window is maximized, click the Maximize button again to restore it to its previous position and size on the screen.
You can perform one of the following actions to unmaximize a window:
Choose Unmaximize from the Window menu.
Press Alt+F5.
Double-click any part of the titlebar except the buttons at either end.