Reflective Glass shader, like those in our window I want my glass in Blender to be reflective and also transparent, like most glasses of the windows (not MS Windows).

They reflect light to the lighter side. For example, during the day, it behaves like mirror in the outside and the inside of the building isn't seen from the outside. But during the night, the inside is ligher, so it behaves like mirror in the inside, and we can see inside the building while looking from the outside.

How to achieve this effect in Blender? (The day/night example was just for explaining it, so please suggest shaders and materials, not different materials for each time! I want a single material and a single window glass)

Thanks
The standard Glass shader gives you exactly that.
Or if you prefer Principled BSDF like me:


Set Transmission to 1
Use Roughness and Transmission roughness to control the glass type
Add thickness to your glass for realistic results


Suzanne on one side, and a black material on the other to make a mirror



To make this work in Eevee


enable Refraction in the Render tab
enable Screen Space Refraction in your material settings