There should be a sticker located in the engine compartment that shows the emission related vacuum line routing.
when water is filled up to the brim then water and cardboard are in complete contact with each other , there is no space for air to enter in ...... so it creates a sort of cacuum....and when glass is turned upside down then that created vacuum leads to the hanging of cardboard on its own