Board Thread:General Discussion/@comment-25255359-20150331214852/@comment-8161155-20170707034951

But maybe he briefly "possessed" the curtain by accident?

There's also a belief that ghosts can manifest themselves in the form of a light breeze, so it could be that Dipper was able to move things, however weakly.

In any case, the ultimate reason is for a visual effect.