Just use private APIs to make window isActive check