code: function onWindowResize() {
      camera.aspect = container.offsetWidth / container.offsetHeight;
      camera.updateProjectionMatrix();
  
      renderer.setSize(container.offsetWidth, container.offsetHeight);
  }
docs: Handle window resize