code: def on_resize(self, width, height):
          
          width, height = self._update_perspective(width, height)
          self.scene.camera.resolution = (width, height)
          self.view['ball'].resize(self.scene.camera.resolution)
          self.scene.camera.transform = self.view['ball'].pose
docs: Handle resized windows.