The UI API provides a basic windowing interface library of widgets that can be constructed from XML. It also handles the various different types of windowing interfaces leafChat supports (single-window mode, tabbed mode, multiple-window mode).