Unfortunately this is not possible at the moment, we had a similar issue with the Google Maps Widget, where we wanted to have the widget get the Google JSAPI and load Maps through the loader. The reason this cannot be done at the moment is the way the modeler works:
The suggestion of Marcel on the Q4 idea topic would be great to have.
The widget checker does not approve of this. I added a topic to the Q4 idea topic