How to extend the Discourse sidebar?

Just a note, that’s not a plugin, only a theme component, so it’s probably less-likely to cause issues when updating.