What might be useful would be something which rearranged the tabs associated with a window to match the unit order in the project inspector, i.e. the .lpr file, if open, is at the left.
I don't think that will make it as a default feature, but could always be added as 3rd party package.
IMHO in most cases the order in the Project Inspector is arbitrary. (Except when previously sorted by alphabet.
While not what you want, you can sort them manually.
1) Drag/Drop tabs
2) Assignable keys to move current tab right/left/right-most/left-most
3) Tab-Context menu
Just one hint. An imho common scenario is to look up something using codetools.
Some unit will open, you will look at the definition, and go back (history jump back).
That leaves the unit open.
Using ctrl-f4 will close the unit. And, if setup always return to the previous active unit.
Tools > Options > Editor > Pages and Windows: "Use tab history when closing tabs"