If it works with the original class on which you based your new class, then the following must be true:
The parameter name should be the same as in the original class (for example, Sample).
In the Class editor the Type should be #samplesFileName
And the Field type should be fileName.
If those three things are true, then it should work with drag and drop from the Sound Browser.