MacOS Desktop App loses focus when logging in via Touch ID

My MacOS 14.2.1 (Macbook Pro M1 Pro) has a weird behaviour when logging in on its Desktop App.

If I log in using the master password, there is no issue. However, if I log in using the Touch ID, the app loses focus and I have to bring it up again to search for an entry. I noticed that this behaviour only happens if I have the flag “Always show in Dock” marked as false. I this flag is true, the application behaves as expected either logging in via master password or via Touch ID.

This is very annoying. Has anyone else being experiencing this issue and knows how to solve it?