I find things like a CamelBak full of your favourite refreshment work well. If you are clever with the tube & mouthpiece you can drink without letting go of anything!
I also find sandwiches made with lots of mayonnaise are best as it stops the contents spreading around the cockpit.
As a glider pilot as well, I have to think about getting rid of fluid too but that's another story.