See this: https://github.com/atk4/atk4/pull/355
View_DropButton already exists in ATK. It just needed small fixes and with these it works.
Of course it's only one level, but we can extend it a little I guess.
For example with possibility to customize menu class etc.