setParentWindow

Sets parent as current window's parent window, passing null will turn current window into a top-level window.