The reason for glass surfing maybe that bearded dragons are stressed. This can be caused by new decorations or rearrangement of the vivarium or feeling threatened by its reflection in the glass.
Also, a bearded dragon may suffer from boredom or hunger.