Assuming you are wanting this for mobile as your screenshot indicates, then add this code to a theme component Mobile CSS tab:
Then create a custom link for the top sidebar section:
There it is…
click it and there is the modal: