I'm specifically thinking about Flaming Sphere, which states
A 5-foot-diameter Sphere of fire appears in an unoccupied space of your choice within range and lasts for the Duration.
but this is probably applicable to other spells, notably conjuration spells, as they tend to target empty space, rather than creatures.
In the situation where the caster is behind a wall, but still has a way to see the other side (though a window, or looking through their Familiar's eyes, for example), could they cast Flaming Sphere "through" the wall, assuming they're targeting a point within range?