The inconsistency is based around a scenario like this.
Open 4 tabs. click tab 1 and then tab 3. What order do you display the tabs in? Does tab 1 overlay tab 2? If closing tabs don't to the last open tab this now means that the visual stack is not accurate to how the program operates.
I understand the depth but there are better ways to show it that don't take up as much space nor have to deal with issues like visually showing the tab's z-order