Add basic support for window resizing and pinch gesture controller.