This may sound obvious and pedantic but by practicing it.
Getting yourself in someone's head is something you should return to casually, formally in various contexts and subtexts.
I like to use this one: "What part of their day is this?", which feels more relevant since I work across timezones now.