It is possible to train yourself to do that. I'd suggest starting with the corners of the room, horizontally, where the ceiling meets the wall. Taking your eyes slightly out of focus helps too. You will fail often. The goal is to minimize saccades.
If you are not following a pre-existing "line", it gets exponentially harder.