Function Window.restoreWindow

restore window if maximized/minimized/hidden

bool restoreWindow(
  bool activate = false
);