Just open the note and the attachment(s) in different windows. If you don’t like having too many windows open at the same time, have a try at my script for a two-window workflow.
I have separate databases for my notes and reference materials. If I need to associate, for instance, a markdown note with a PDF, I add an item link to the PDF in the note. Backlinks are shown in the Inspectors > Links panel.