In order to optically contact two pieces of glass (via intermolecular forces), the two surfaces must have the same shape to better than 1 nm. OP's experience is likely not due to this phenomenon since any two pieces of float glass most people can obtain at the hardware store is not near the required surface shape to observe this.