Hey, if it worked once it'll work again. Unless he's just 'tarded in that lovable dog way my guess is he sat licking the window once, the owner gave him what he wanted (getting inside), and it clicked that that's how you get attention when you want to be indoors. Dogs are like that.
Or the window tastes like whatever he ate last time he licked it.