Sheldon Brown always said:
Lock your wheel through the rear triangle. Good advice for more than one reason.
I locked my bike in a risky place (see attached photos). But - it looks like the pretzeled wheel spread the impact force to the dropouts smoothly, and the chainstays are still straight.
If the bike were locked directly to the top or seat tube, both the wheel and frame would be toast.