Switch to different windows to trigger events. Note that in this demo, the title is updated so that the focus can be seen from a browser tab or window title.
Viewport Demo
Viewport Blur/Focus Events (most recent on top)