Earlier versions of Windows, including Vista and XP, automatically expanded the folder tree to show the location of the folder opened in the right pane.? You have to expand the navigation area manually.
How to open files automatically in Windows 10/11 when folder is opened.