setWindowSize function

Change the size of the current window.