It means to lose focus on what is happening around you, often without realizing it.

odmaknuti se, pogubiti se, biti rastresen