Perhaps I misunderstand, but wouldn't it be a really bad idea to have your rain gear (bandanna) snug up against your head. Seems like you would probably produce as much sweat and water that you would be avoiding. . .

But if your are bent on doing this, why not just get a piece of silicone impregnated cloth cut to the same size as a bandanna and then use that?