Heads up! This blog post hasn't been updated in over 2 years. CodePen is an ever changing place, so if this post references features, you're probably better off checking the docs. Get in touch with support if you have further questions.

The latest CodeMirror shows you the cursor position when you drag and drop stuff. Here, I'm dropping an SVG file in from the desktop (which places that file's contents in the editor).

The cursor-positioning bit doesn't quite work when you drag from the assets area, because the editor isn't active while you do that, but it still drops the file name OK.