Hello,
Appeatance > Widgets > Shop Sidebar > add Product Categories widget and select “Show as dropdown”.
Regards