New resize implementation for main window (win)