How to create clickable links and child menu items on the same top level menu

Similar to this one but it doesn’t have a code sample