Unfortunately I am not able to share the source code; however, in the end, I decided to replace the sidebar drawer by a custom component; the rest of the Metronic components seem to be working fine for now.
Thank you