In Textmate when you drag a file from the desktop or wherever onto an open file you can define a command on how to handle the situation. More:
That Python code can call command line programs like php.
That would defeat the purpose. So just Python. Are the Docs for the Sublime Python version still missing?