In the window opened you must select the media file you are interested in (a blue border appear around the media) and then click the "Select file" button :

The window will disappear and will then display something like this above in your discussion/comment editor at the cursor position :

This string is the link to the media file that will automatically be displayed in your discussion/comment when posted.
⚠ Do not change or alter this text.