Button in Sidenav

In this thread Bart shows his custom node that adds a full terminal on the sidebar: [ANNOUNCE]node-red-contrib-xterm : second beta (sidebar)

Maybe his code can give you some ideas how to proceed?