Water droplets are formed by the process of transpiration.
The liquid that comes out of tree bark is actually the excretory wastes like resins, gums, alkaloids (wastes obtained from nitrogenous substances), rubber, etc. Plants do not have special excretory system. They excrete out these waste materials through the bark. Cell sap is the liquid that is stored in the cell vacuole and composed of water and sugars.