Alter the size of the window depending on the context in windowed mode.