Resize window (and some other stuff I've forgotten)