How to add my own module widget to another module?

Here seems to be a related issue with the Markups module: