isModal() for window