There are procedures defined in the US Pharmacopeia (also in the EU Pharmacopeia, JP Pharmacopeia, and any others I've forgotten -- not trying to leave anyone out) that define the proper way to handle each pharmaceutical: you may use as-is, quantitate the moisture or dry. The drying method may be gentle heating for a long time, vigorous heating for a short time, open to the incubator used or under vacuum. You'll have to look up your specific pharmaceutical, in the correct regulatory book, to see what to do.