I have fixed a similar glitch in the past by doing the following right before initializing the dialog:
$.ui.dialog.prototype._makeDraggable = function () {
this.uiDialog.draggable({
containment: false,
handle: "div.ui-widget-header",
cancel: "#dialogId"
});
};