Add drag and drop support for .cg - Fixes #498