Just ring the bloody doorbell ffs.
I don't mind a casual glance in as they go past the window to the door but to stop, shade their eyes for a better look and peer right in the window pisses me off no end.
And the door is right next to the window so it's not as if they have to hike round the house to get to the door.