When you use multiple spaces on Macos (tested on 12.2.1), Teams window does not follow the default behaviour.
On a regular app, if you click the dock icon or cmd+tab, the focus is changed to the correct space and the main (or last) window is brought to the foreground.
With Teams, it does not switch space automatically. So if you're in the same space, it does bring the app to the foreground. If not, it just selects the application and stays in the current space.
Is this a bug or intentional?