Staring off into space can be caused by dementia, eyesight problems, infections that can disorient the dog, because the dog is sensing or hearing something that you are just not able to see or hear, to gain attention, something in the walls, or a seizure.