Hmm, a lot of people have pointed out possible places to use for dungeons in the modern day, so I needn't repeat them, but it seems there was more to it than that in the first post (or I'm misunderstanding). If this was more a question of how to use modern buildings logically while having the same functions of a "classic" RPG dungeon, then the question might be more of what you want them to do. Much more than for a fantasy setting, we have a clear idea of what modern buildings are supposed to be like, an empty room is more jarring for us because we know there should be a purpose or function to a room. Otherwise, it wouldn't have been built that way.
Do you want them to have/be mazes? Kind of hard, since most modern buildings are small and built to not be confusing (even if they don't feel like it at first), and very large ones like office buildings, hospitals, and parking garages can be very boring by the nature of being intentionally homogenous. There are some that work, like sewer systems, underground railways, or apartment buildings, but to use them for a whole game could get stale for both creator and player. Perhaps come at it from another angle. With an older urbanized city, the buildings themselves could provide the walls of a maze of alleyways and unused streets, in less urbanized, there could still be a net of fencing that cuts off different paths through neighborhoods (though you would need a creative reason to avoid the main path). You could also simply use multiple adjacent buildings for a single 'dungeon', using similar building to catch the player by surprise by playing with expected similarities, or very different ones to play with contrast and keep the player on their toes not knowing what's next.
Do you want puzzles? Also tricky to justify. Outside of eccentrics, one would expect most in the modern day to stick to keys, combinations, and passwords, things that are tricky to work into a dungeon logically, without making the player just search every room for a key. I think it's more an issue that, without fantastic elements, a lot of puzzles feel silly in a modern setting when, as said above, we've relatively simpler ways of keeping things hidden/secret. I think this is something that really comes down to the narrative specifics. I could, for example, see a puzzle where the character/player has a key, but has to first see a note that vaguely hints to a painting/picture that the safe is behind, but that won't be compelling or interesting without narrative specifics helping it.
Does it need to have combat encounters? Really depends on the genre, I think. Fantastical, supernatural, or science fiction elements are really what decide the solution for this, and that solution may need to change or adapt depending on the location in question. Maybe it makes sense for enemies to be out in force in the sewers or abandoned buildings, but not the apartment or empty wing of the hospital? Maybe look at ways you can run with that, with plenty of weak enemies in one location and only a few specialized ones in another?
Of course, how much you're breaking away from "normal" reality greatly effects on how much any of these are obstacles, as well as how much any may be an issue in the first place.
You also brought up that you didn't want to have characters just 'bust into a building' unless the plot called for it. There are plenty of other reasons a person or persons might enter a place not their own without stepping into the morally grey or illegality. A good inspiration could actually be the old Scooby Doo cartoon. Sometimes the van breaks down, sometimes an old friend called them, sometimes they're trying to return something they found, and sometimes they've actually arranged to visit a historical site. (come to think of it, classic Scooby Doo could be a well of inspiration for abandoned and/or spooky places to visit as well)
That's a lot, and I hope I didn't ramble too much. If it's not what you're looking for I apologize.