How to add menu to panel with grafana scenes

I added a menu property to my vizPanel but I want the menu to contain the (edit, view, inspect, …) how I can implement this with grafana scenes

I did this (code below) but I don’t know how to add the edit menu UI for the panel where I can edit the panel (ex: edit datasource, edit transformations, …)

Note: The panel is working it shows data.
//some code

new SceneGridItem({
x: 6,
y: 1,
width: 6,
height: 8,
body: new VizPanel({
// some code here like datasource, fieldConfig, options, transformations…
pluginId: ‘piechart’,
menu: new VizPanelMenu({
items:[
{
type: ‘submenu’,
text: ‘Modify’,
onClick: () => {
//how can I get that menu where I can modify this panel ?
}
}
]
}),
}),
}),
//some code