Gets the Tab that matches with the given location.
location
a Window
a File
the Tab that matches with the given location.