Partition Recovery vs. File Recovery
A missing partition does not automatically mean the files inside it need repair. Partition recovery changes the outer map that tells a system where a volume begins and ends; file recovery reads the volume's structures and copies data elsewhere. Those jobs have different risk profiles.
The partition table is only the outer map
GPT or MBR describes partition boundaries and types. Inside those boundaries, the file system has its own boot sectors, superblocks, allocation structures and directory metadata. Losing the outer map can leave the internal file system almost untouched.
You can often recover without repairing
Recovery software can infer likely volume boundaries from surviving internal structures and open a found file system virtually. Files can then be copied elsewhere without writing a new GPT or MBR entry to the source.
Repair comes after verification
If boundaries and the file system are well understood, restoring a partition entry can be convenient. It should not be used as a diagnostic experiment on the only copy of important data.
RAW and unallocated are symptoms
An unallocated disk view points toward missing partition metadata; a RAW volume means Windows could not mount a recognized file system. Either symptom can have other causes, including damaged metadata, encryption or failing storage.
If the data matters, prove that the expected files and directories can be read before making the original disk bootable or mountable again.
Related: Partition Loss · Drive Shows as "RAW" · Repair Utilities vs. Recovery