How to add an icon or a button to the right side of the top panel

@Darya thank you for the discussion!

You can use the ApplicationShell#addWidget to add your widget (button, icon, menu, etc.) to the topPanel and style your element to the right with CSS.

Ex:

this.applicationShell.addWidget(widget, { area: 'top' });