How to load a widget in an iframe?

The goal is to create a widget like the OOTB HTML Widget but have it render content within an iframe.  It is possible to do that with the JS code to inject content into an iframe, but that has it's own set of issues. I'm just wondering if there is an easier way.

I looked at something like $core_v2_widget.GetFileUrl('frame.vm') as the frame source, but this appears to just point to CFS.

Any ideas?

Thanks.