React to events in the Viewer

We support registering callbacks to Viewer events in these environments:

For users extending the Viewer through the Rust re_viewer crate, there are two options: