When you can no longer see any things outside, to reference the aircraft by visually, then it's IF.
That's the criteria I use, but after reading this thread I'll be more strict and so probably log less IF hours as such.
As for ducking under the dashboard to log IF time, isn't that (almost!) what we do with those funny IF goggles things?