DashboardLayout takes defaultSidebarCollapsed prop
https://mui.com/toolpad/core/react-dashboard-layout/#start-with-mini-drawer-on-desktop
Pass this prop and by default the drawer will be collapsed.