setWindowSizeOld function

Change the size of the specified window.