As an example an old MacDraw 1.7 document "md" without extension:
file command displays no details:
file md
md: data
mdls displays file type & creator and Golden Gate Finder > Get Info displays "MacDraw document":
mdls md
kMDItemFSCreatorCode = "MDRW"
kMDItemFSTypeCode = "DRWG"
kMDItemKind = "MacDraw document"
If I remove file type & creator (with GraphicConverter) Golden Gate Finder > Get Info displays "Unix Executable File":
mdls md_edit
kMDItemFSCreatorCode = ""
kMDItemFSTypeCode = ""
kMDItemKind = "Unix Executable File"
I could not find a matching file signature in a few online databases:
xxd -l 4 -g 1 -u md
00000000: 44 52 57 47 DRWG
Some files need a longer dump and a 4 byte offset but neither its signature was not found:
xxd -l 8 -g 1 -u -s +4 md
00000004: 4D 44 00 06 00 03 00 00 MD......
https://www.garykessler.net/library/file_sigs.html
https://en.wikipedia.org/wiki/List_of_file_signatures
https://www.filesignatures.net
GraphicConverter 12.5.4 can not properly open that MacDraw 1.7 document but it offers to open MacDraw II document with:

The latest LibreOffice 26.8.0.3 opens MacDraw 1.7 document OK:

That sample MacDraw 1.7 document is for a few days at:
https://www.dropbox.com/scl/fi/k7udus4i8ov511mv0owgw/md?rlkey=poktdkjvatnhbzz6u9ya5gk60&dl=0