We can provide a feature to mimic the behaviour of a typical IDE's file explorer.
If I open a Fern drawer in current tab, and then I switch to other tab, the Fern drawer will automatically toggle to open, and vice versa. nvim-tree has a very similar feature.