Assuming you mean a browser ... Close all but one browser window, resize it like you described, (drag the edges out), then while holding down the [Ctrl] key, click the red [X] at the top right corner of the browser window. The next time you open that browser, the window size should be the same size as when you last closed it.