Sets callback as a global callback to be called when the user activates a URL link in the dialog.
The optional argument data can be passed to provide data for the callback function.
This method must be called statically.