Similar to having a single drink or two. It dulls the brain just enough to remove internal distracting thoughts, but not enough to dull all higher thought functions.
Sleep deprivation (I’m an insomniac) has a similar effect if I have a lot of grindy work to do there is a point between tired and exhausted where I can hammer through it.