Make setSubmenu public API

The API for that isn’t public, but it’s technically possible to do that, but each plugin author would need to implement it. (That’s why I changed the title.)

See here for an example implementation: