I think I recall from the last developer’s office hours Adobe indicating that this wasn’t yet possible in Adobe InDesign outside of using, as you suggested, Adobe InDesign menu items (which I’ve test within UXP). But I could have confused this with Adobe Photoshop that doesn’t allow access to the main menu bar.