Most steam games use the steam api, and do something along the lines of: If steam not running, show error popup.
You can use common Steam piracy tools to work around this problem, though. All you need to do is build (or download, if you've for faith in your antivirus software) a few DLLs and drop them into the game folder: https://gitlab.com/Mr_Goldberg/goldberg_emulator
I have actually tried to use these on purchased games. They sometimes work, they sometimes obviously don't work, and they sometimes appear to work initially but then cause weird bugs deep into the game.
Somehow when I buy games on GOG I never have to worry about this.