How to trigger a popup window/overlay in my module?
Take a look at the Colorbox module.

You can find a few examples here.

Usage Example: 

&lt;a class="colorbox-load" href="http://example.com/?width=950&amp;height=500&amp;iframe=true"&gt;open URL in Colorbox (iframe)&lt;/a&gt;