Nest sheets where they open from
A sheet goes inside the level that opens it, after that level's content. The row that opens it is a button with data-skm-trigger and aria-controls set to the sheet's id. That's all the wiring there is: the script reads parent and child levels from the DOM.
Give every level a strip
Each level's first child is a data-skm-edge button. It stays hidden until a sheet covers the level, then becomes the way back. Give it an aria-label that names the level ("Back to work").
Keep ids unique
Sheet ids are global. With two menus on a page, prefix them per menu.
Mind the width
data-au-width sets the drawer in em on screens above 767px; phones always get the full width. Three levels deep, every strip takes data-au-edge off the content, so keep labels short or the drawer wide.