How to call dropdown function in Source using dropdown.js

That script is IIRC used for the automatic collapsing of top-level menu items. Source does not support manually configured dropdowns otherwise. I made some snippets you can paste in