Reuse Discourse Hamburger Functionality

Hi, how can I place this right after the search icon? And how to add custom html inside panelContents?