looks like one part ("no file selected") is rendered using RenderTheme.mm, while the "Choose File" button is a <input type=button> as shadow content. Apparently this is historical. I think it would be beneficial to fully use shadow content here. Worth noting iOS has image previews.
<rdar://problem/82248658>