Advanced Panel Controls - e.g. Resizing Side Panels (LHS, RHS, BHS) using your mouse

I would really like to have the table of contents and mentions in the sidebar. It is ugly, and doesn't have much styling, but I did get mentions to show up on the righthand bar using these tools, and its completely re-sizeable too!

function refresh_custom_sidebar(e)
    local target_page = (e and e.page) or editor.getCurrentPage()
  
    local mentions_widget = widgets.linkedMentions(target_page)
    local mentions_markdown = ""
    if mentions_widget and mentions_widget.markdown then
        mentions_markdown = mentions_widget.markdown
    else
        mentions_markdown = "## Linked Mentions\nNo mentions found for this page."
    end

    local html_body = markdown.markdownToHtml(mentions_markdown)

    editor.showPanel("rhs", 1, html_body)
end

event.listen {
    name = "editor:pageLoaded",
    run = refresh_custom_sidebar
}

command.define {
    name = "Sidebar: Open TOC and Mentions",
    run = function()
        refresh_custom_sidebar()
    end
}

I played around a while ago with the TOC in the Sidepanel and got this working:

maybe you can build upon that and also get the mentions added.