There doesn't seem to be anything wrong with just showing the popup menu in this window itself and this avoids the need to do any coordinate adjustments, which didn't work correctly for the menus shown over the header window after the previous commit (and hadn't worked correctly for the menus shown over the non-header area before it). See #18133.