I've slept on the train plenty of times.
Once you get used to the journey I honestly don't know how, but you often wake up just before you stop. Fortunately I've not missed my stop when sober.
I'm sure the first few journeys would be harder to sleep through, but once you get used to it, it would be weird to not fall asleep if you plan it as rest time.
I just don't think I could fall asleep in Glasgow though...