WD passport accidentally disconnected from mac

I wasn’t transferring data.  I did have a pdf file from the external hd open in preview on my mac.  How should I go about repairing if the device can’t be selected in Disk Utility?