Parent window.
property Parent: TWinControl;
When you assign Parent property TPopupControl closes popup window, if it is visible.
TPopupControl Properties