OK, well that's not a hockey rule at all. In fact, Most fans who sit directly behind the glass use the partition as a makeshift noisemaker.
But be warned: If you bang, they will bang back.
A kid at the Montreal Canadiens game against the Columbus Blue Jackets on Friday found out the hard way.
UPDATE: For good measure, here's a .GIF.