MoveableWin.
Restores the window to its previous size.
window.Restore ( )
Restore restores the window to the width and height it had before it was reduced to an icon (with the Minimize method) or maximized (with the Maximize method). Restore does nothing if the window is neither reduced to an icon nor maximized. If the window is not exposed, Restore generates the error message Window is not exposed unless you have turned off the option that verifies that the window is exposed. To do this, execute the following statement before executing the Restore method:
SetOption(OPT_VERIFY_EXPOSED, FALSE)
TextEditor.Document.Maximize () TextEditor.Document.Restore ()