added Window::toggleResize