JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<div id="cc"></div>

<div class="ww" title="Window1" style="width:300px;height:200px;padding:10px;left:100px;top:50px">
		The window content1.
</div>
<div class="ww" title="Window2" style="width:300px;height:200px;padding:10px;left:200px;top:100px">
		The window content2.
</div>

JavaScript

$('.ww').window({
    onMinimize:function(){
        var opts = $(this).window('options');
        var a = $('<a href="#"></a>').appendTo('#cc');
        a.html(opts.title).linkbutton({
            targetWindow: this,
            onClick:function(){
                var opts = $(this).linkbutton('options');
                $(opts.targetWindow).window('open');
                $(this).remove();
            }
        })
    }
})