I came across a very similar hole directly through a door like that as well not too long ago... discovered it after who I was with stepped right over it without even noticing and after realizing what it was and the fact it dropped ~3 stories I've been MUCH more aware as I'm walking around now.
I slid a chair over it to span the gap and make someone have to move it before passing it, this is what I'd like to see more instead of painting - using stuff in the immediate area if possible to show where hazards may be.