How do you add an icon to the title of a dialog box?

How do you add an icon to the title of a dialog box?

The question is pretty self explanatory.