Offering a crate as a safe and cosy space to relax, sleep, etc. is recommended by the RSPCA (and the Dog Trust, Battersea, and many more).
In normal use it’s fitted with a small mattress, vet bed, toys (that I didn’t show because I didn’t make those myself).
I actually had to look it up when writing that post, I think I searched for “garden gate lock” at first :)