Why does the Window Manager have to provide focus and even visibility info to the application? I could foresee an evolution of runtime controls where "Is Focused" is a user-selectable permission for apps, just like how the browser requires user approval to allow web notifications or PeerConnection access to network or webcams.