Resize window to new size