Add window states events for BrowserWindow

Fixes #737.