The webWindow package allows you to take any html element and put it in a virtual window with two lines of javascript:
var element = document.getElementById("your-elements-id");
newWindObj(element,"window-title");
see this example