Yes, for more information on that, just head over to this thread:
https://forum.cockos.com/showthread.php?t=226007
Edit: Menus wouldn't be possible that way, but I don't know much about the C++-only-Reaper-functions, who allow accessing the menu. Maybe it's possible that way...