I forked your code and make some change, is this what u want?
https://codesandbox.io/p/devbox/mui-persistantdrawerleft-forked-j22q5l?workspaceId=ws_UMhkCVPxq8yi6pfH8Fwg1o