You dont drag the pcdata.bin to PKHeX, you run pcdata to savefile (which is a batch file aka command prompt execution) and then drag the file named savefile into PKHeX. To get it back into the pcdata.bin file, run the savefile to pcdata batch file after all the edits then go back to the pcin website.