The Dialog Control is transformed to a JQuery dialog. see JQuery.com for more information on JQuery.
While developng, set Autoopen to true, otherwise the Web Designer preview function will not work. You can turn it off again once development work has finished.
When placing lookups on dialogs the opening and closing of the dialog is handled for you, so you do not need to program it yourself.