XUL is/was the language for the entire Mozilla app UI. So it's not like they invented it specifically for third parties to use- or even with them in mind.
https://developer.mozilla.org/en-US/docs/XULRunner
The XML-based XUL isn't terrible, either, considering the respectable set of widgets and the ability to control all the styles with CSS. The nasty part, in my experience, was trying to get through the messy FFI that was XPCOM.