Daniel Simons and Christopher Chabris's famous 1999 "invisible gorilla" experiment made this vivid. Ask people to count basketball passes, and roughly half miss a person in a gorilla suit walking straight through the middle of the frame. When attention locks onto one task, the brain filters out unrelated stimuli entirely.
In UI, when a user is focused on a task — filling a form, checking out — a banner, error message, or success toast nearby can go completely unnoticed. Screen edges and familiar "ad" positions are already trained to be ignored (see: banner blindness), making them even easier to miss.
To cut through selective attention, important notices need to sit near the user's actual point of focus (close to the field being edited) and use a visual signal distinct from what they're already tuned out.
A stays focused on "count the red dots" while a blue shape crosses the screen unflagged; B, watching with no task, gets a notice ping on the same shape.
When to use
Use this when placing an error or success message. Put it near where the user's attention already is — a notice far from that point might as well not exist mid-task.