3M makes several products just for this purpose. I haven't installed yet since the place where my son works hasn't gotten set up as a dealer yet. There are some kits you can buy on Amazon but I don't know how they stack up against 3M's product.
https://www.3m.com/3M/en_US/home-window-solutions-us/solutions/temperature-control/
There must not be much demand for it, but I've thought that having windows that work like Transitions lenses would be nice.