How can my plugin generate a generic modal window in the Control Panel?
Create a div with whatever contents you want in the modal, and with a class "modal". Then create a new Garnish.Modal object with it:

var $div = $('&lt;div class="modal"&gt;...&lt;/div&gt;');
var myModal = new Garnish.Modal($div);