I experienced this too. IIRC the brightness-sensitive rod cells are more concentrated in your peripheral vision while your central vision has more colour-sensitive cone cells. This makes the centre of your vision less sensitive to dim objects, so you can see them only while looking indirectly (and they "disappear" when staring at them)
Another related effect is flickering of badly designed lighting only in my peripheral vision. When looking directly at the lights they look fine, but when the lights are in my peripheral vision they appear to flash distractingly. I think the peripheral vision is optimised to detect fast changes/movements. At least, that makes sense based on evolution.
The flickering i see as well when looking near my ali express outdoor LED light strip, from the corner of my eyes. The sub-components of the PWM seem to emerge as well.
Another related effect is flickering of badly designed lighting only in my peripheral vision. When looking directly at the lights they look fine, but when the lights are in my peripheral vision they appear to flash distractingly. I think the peripheral vision is optimised to detect fast changes/movements. At least, that makes sense based on evolution.