Rain Water enters through tracks of sliding glass windows
The lower track of a window frame normally is supposed to have small holes at its lower edge toward the outside that allows water in the track to drain out. These are commonly called weep holes.

It is a common problem that over years dirt can collect on the bottom of the track and clog up these holes so the track will no longer drain. Look to see if yours are clogged and clean if necessary.