I try to follow the principle of cooking your dinner a mile or two away from where you are sleeping to avoid making yourself smell like a giant snickers sandwich. But what I see on YT videos is everyone cooking at the shelters. If mother nature is dropping buckets of rain for days I can sympathize with cooking under the shelter roof, it makes sense. But in the case where you want to eat a meal away from a shelter while it's raining do you just avoid "cooking" and eat the snack foods until its dry enough to cook? I think i'm mentally prepared to just trudge through rain all day but the cooking thing I haven't figured out. I thought may use my tent fly for a quick shelter but in a downpour you'll be opening your bag in the rain and risking getting everything wet.
All that said, what would you past hikers recommend for cooking in the rain, AND is cooking at shelters is acceptable? Thanks in advance!