I’m extremely bad at this because my mind wanders a lot.
Meditation helps a lot but I’ve got a long way to go.
For now, what I do is I remove all technology (especially my phone) from my work desk.
I use a pomodoro with nature music to start and a note pad to write any random thoughts that comes all the time.
Am still learning…