I’m assuming I’m missing:
// Enqueue uploadedr scripts.
acf_enqueue_uploader();
and
// Trigger the append action and provide the newly appended jQuery element.
acf.do_action('append', $('#popup-id'));
but adding these doesn’t seem to do the trick. Maybe I’m adding them wrong?