Maybe she is sleepy or hungry? Or perhaps has mastered neck control? My boy used to shake his head when i was about to feed him when he was at the newborn stage, cus he was really very hungry all the time.
Mine too when she gonna doze off she will go left right left right but it lasted for 1 month only. But it's so funny and cute haha