— Jeremy Bentham (1791). Panopticon, or The Inspection House
They're really just glass with a partially reflective layer.
When one side is brightly lit and the other side isn't you get the desired effect.
However, looking at the patent for what is supposed to be the first it says that there were earlier attempts--they just sucked because making the partially reflective layer was difficult and expensive and not durable enough when used on outdoor advertising devices.
Yes, you read that right. Advertising. Technology being driven by someone's desire to show ads is not new.
The thing the inventor was building was a case for displaying advertising posters. The case had a glass front, and the poster was behind the glass, with powerful lights behind the poster. When the lights were off the glass would appear to people looking at the case to be a mirror. When the lights were on the poster could be seen.
Frankly you could just use blinds though.
The Wikipedia page on silvering points to the 1400s in Europe, and the 10th century for the eastern Mediterranean : https://en.wikipedia.org/wiki/Silvering