JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wnd"></div>
<button id="btn">click me</button>
CSS
.wnd {background:yellow;height:900px;width:300px;}
JavaScript
$(function(){
var dialogOptions = {
autoOpen: false,
modal: true,
width: 400,
height: 1000,
draggable: true
};
$(".wnd").dialog(dialogOptions);
$("#btn").click(function(){ $(".wnd").dialog("open"); }).parent;
});