Provides hooks for various user-triggered events, such as losing window focus.