pub fn on_resize(f: impl FnMut(UiEvent) + 'static) -> EventCallback
Add a resize event handler at the window level.
resize
This only has an effect on WASM targets.