this plugin dont work in dialogs, my work around was to simply trigger window resize event. This will then draw the black bars for dragging.
$( "#dialog" ).dialog({
focus: function( event, ui ) {
/* fixes bug with dialogs */
$(window).trigger('resize');
}
});