Programtically selecting image URL in Media Library modal

I found this answer, it can be done like this:

const state = this.state();
const selection = state.get( 'selection' );
selection.add({ url: 'http://www2.cnrs.fr/sites/communique/image/mona_unvarnish_web_image.jpg' });

Where this is an instance of wp.media.view.MediaFrame.Select

Hope it helps someone!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)