Tab Context Menu

I am currently trying to add a ContextMenu to tabs inside Accordion but I can’t do that.
Anyone had the same requirement or has any idea how to implement this ? I’d like to have this on the tab and not outside of it.

Best regards,
Ivan Frias