JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<iframe width='400' height='400' style="position: relative"></iframe>
JavaScript
$("<div style='height: 200px; background-color: #00ff00; width: 1500px'></div><div class='draggable' style='background-color: #ff0000; width: 100px; height: 100px'>drag</div>").appendTo($("iframe").contents().get(0).body);
$($("iframe").contents().get(0).body).find(".draggable").draggable({ iframeFix: true });