Initial code for windows resize (does not yet work).