Displays a popup menu.
Menu is shown at position pos, generated from a submenu specified by menuItemPath using a MenuCommand as menu context.