This describes the feelings and actions of someone in the period of consciousness right before going to sleep. Frequently the result of fighting sleep. The actions often resemble those of someone under the influence of alcohol.
Oh. She wasn't drinking. She just hit sleep deprivation intoxication. It was way past her bedtime.