Just click U, for the settings window to pop up.
Then click on ui tab i believe.
Then where it says resolution, do window.
I usually do 800x200.
then click ok.
Then just drag the sides of the window how u want it.
Some edges won't extend that far, like near the edge of ur screen.