Never done this before (no header gasket)

Even some of the more costly headers do not have a flat flange.
A flat flange will need no gasket, a hard gasket, or a thin coat of RTV. This is the proper way to get the threads on the mounting bolts to deform in the elastic range where they hold and do not back off.
upload_2022-4-4_16-10-6.png

That said, many big name mass produced headers including TTI and Sanderson put a raised bead on the header. These need a soft gasket to seal. Maybe a heavy RTV would work too, I haven't tried.
upload_2022-4-4_16-5-5.png

upload_2022-4-4_16-7-31.png

upload_2022-4-4_16-5-51.png

I filed and lapped these as best I could but they are what they are.

On my car's current headers, the flanges are flat and just thin coat of orange hi-temp rtv has been effective.