Accurately monitor the open state of DefaultWindow