I've had to open my pack when it's raining
1 – I don't put anything wet in my pack. The most I ever wear is a rain jacket and a base layer. If it stops raining I'll let the jacket dry off on me while I'm hiking before taking it off and putting in pack. I never have a wet or snowy garment that I have to put in pack.
2 – if I'm packing up, I'll put everything in my pack under my tarp, then close up pack, then take down tarp and put in waterproof bag (zip lock plastic), wipe the bag off a bit, then quickly put that in pack.
3 – On my pack, I have a roll top with velcro closure. If I want to put something in or out, I'll shake it off as best possible before opening, then carefully make sure the opening is above everything else so water doesn't drip in. Make sure water doesn't drip from my jacket into pack. Do it quickly when it's raining. Try to wait for the rain to let up or find a protected place.
4 – Sometimes I'll put something that's wet strapped on the outside of the pack
5 – My vest and sleeping bag are synthetic so they can get a bit damp without making much difference. Once I left the top of my water bottle untightened and some water got on things. If it's raining a lot it's impossible for a little water to not get on things.
Different systems will work, this is just one way to do it