How do you paint glass?

Today your doing a still life painting and in it there’s a glass mug half full of water and a large bow window in the background. Painting glass is not an easy task and for this artist it could be a bad day. Anyone who has delt with this let me know your tips and tricks.