Implemented window and global handlers for Window + DOM based dispatch.