Can you Eldritch Blast a door?
To some people, the answer is "clearly no, the spell says it targets creatures, and a door is not a creature". Similarly, can you use it to determine if someone is faking being dead? If you cast Eldritch Blast on someone who has cast Feign Death, does it fail to fire if and only if they are actually dead?
To other people, Eldritch Blast is a spell that creates beams of force that fire out from your hand. The description covers its typical use - to attack creatures - and leaves other uses up to the DM's adjudication.
So Eldritch Blast in this case can be used to blast a door (doing force damage), or a corpse, or whatever else.
I thought I asked about Scrying
Now, in this case, the Scrying spell describes two uses - scrying on a creature and on a location. You can treat this as an exact hard limitation on how the spell works.
Or you can say "corpses of creatures are very creature-like". And as a DM, you can determine how scrying works in that case. Maybe it doesn't work and the caster learns no information. Maybe it doesn't work right, and you get a hazy view of where the corpse is. Maybe it tries to target the soul of the departed, which hangs around the corpse for a period of time before leaving to another plane (which is why lower level resurrection magic is time limited).
As a general rule, if you do allow such flexibility, I'd gate it behind an arcana check and a casting attribute check. The arcana check is if a PC knows what could possibly happen when you violate the strict formula of a spell, and the casting attribute check might cover how well the spellcaster handles the "warped behavior" of the spell used "off-book".