Basic window resize detection and notification via callbacks.
An example that changes the canvas background color on resize events.