title: Show macOS NSWindow from inside CLI tool
body: <p>I have a CLI tool developed in Swift which does some computation. I would like to show the results of the computation in a window with a graph, therefore some UI is required,</p>
  <p>Is there a way to &quot;marry&quot; these two worlds? i.e pick/input stuff in the terminal/console then get the result on demand via UI on macOS?</p>
  <p>Thanks!</p>