In design mode, it switches to touch mode directly. Otherwise, it proceeds to configure the sidebar, error panel, wait notification view, and other UI elements based on the viewer model's state. It also listens for document loading, search results, hyperlink actions, zoom changes, and sidebar pane changes to trigger the appropriate UI updates or actions.
The constructor also reads the print dialog style from the configuration and sets the printing settings accordingly. Finally, it switches the UI theme and touch mode based on the viewer model's settings.