To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
If I remember correctly, this has been asked before so you could try to search the forum.
One way to get this appearance would be to have two components - the first one looking like a menu bar and expanding horizontally (maybe even an empty MenuBar if it works), the second your real menu bar. Put these in a CssLayout (or HorizontalLayout) and add it to your VerticalLayout.