Factorises out existing surface initialisation code to reuse.
Attach a file by drag & drop or click to upload