Go to material tab and set it as your default material. Go to viewport shading and scroll down. Increase transmission slider to all the way up to 1.00. Next, switch to Scene tab and turn on Screen Space Reflections. Also make sure Refraction selection is also checked to achieve a more realistic glass shading. Scroll down the settings and also check Screen Space Refraction.