ImGuiPopupRefpopup_ref=ImGuiPopupRef(id,parent_window,parent_window->GetID("##Menus"),g.IO.MousePos);// Tagged as new ref because constructor sets Window to NULL.
ImVec2mouse_pos=g.IO.MousePos;
ImVec2popup_pos=mouse_pos;// NB: In the Navigation branch popup_pos may not use mouse_pos.
ImGuiPopupRefpopup_ref=ImGuiPopupRef(id,parent_window,parent_window->GetID("##Menus"),popup_pos,mouse_pos);// Tagged as new ref because constructor sets Window to NULL.