I dont know much, but I do use my friend Google and his sister Bing. Finding the part number was the first step, could be easy but most "purists" make it difficult to channel you into their world. But with the part number I check overseas first, like Partsouq.com, since they typically have a lot of stuff not found in the US, or often a lot cheaper even with shipping.
Then just googled the part number, like "toyota partnumberwithoutthe-sign", and it comes up.
Discontinued doesn't mean it can't be found, just means the OE part is not required to be made by the OEM. Most automotive supplier agreements are the life of the program plus 12 - 17 years. In the later years, the tooling gets old and worn, manufacturers move on to new programs where there is more money, etc. And if the OEM decided to continue to make the part they will have to pay out of their own pocket for re-tooling, etc to stay in tolerances. Just economics, and engineering decisions where I spend my professional life.
So there is always a stock of parts somewhere, not always in the US. And as supplies dwindle, it gets pricier. That heater was around $340, the new version was around $290. But, will last you another 20+ years.