when can `PopupWindow` be undefined?