onViewportResize
Event handler for the viewport resizing. This method should not be called by the user
Parameters
ctx
The context of the current scene, providing necessary information and services for resizing.
width
The new width of the viewport.
height
The new height of the viewport.