this is really interesting, just what i wanted
i have customized my dialog in almost the same way, the only problem i'm stuck with is when default a new dialog is created it automatically calculates to position the dialog on the screen , at this point i want to know the position of where it is created , infact i can see in chrome developer tools the exact position, but i'm not able to retrieve the same value in the html nor the js file.
The reason why i want this value is ,when a dialog is created and on maximizing it and restoring it ,it gets restored to a default position like top:5px,left:10px; but i am sucessfully able to restore it back to the same position after the dialog is dragged onto some point.
Hopw i'm clear with my question :)
cheers
Jeevan