How do you always keep Xcode 12 tabs open?

Xcode 12 keeps closing tabs on its own by default.
It's very annoying as its behaviour is unpredictable (whether it decides to close or keep open a tab).

Is there an option in the preference to enable this by default?
How do you always keep Xcode 12 tabs open?
 
 
Q