Duplicate maya menus

Hi there
Trying to chase down easiest way to lift Maya menus and insert into my UI. I have looked around the native scripts and have found some build scripts which transplant well. There seems to be a lot of variations though. Is there any simple way to duplicate? Ie. The hotbox lifts all the menu items…but can’t see in the hotbox scripts how it’s being done…

From what I have learned this is not easy. Every menu seems to have different build methods, intertwined with update procedures. Not worth the effort. It’s probably less tedious to ctrl+shift click the item to pop on a shelf, then look at the .mel file for that shelf, and extract the info - runtime cmd, icon, cmd etc.