If there are editable files present, the first of those should be opened instead of a non-editable file, such as an image or video.
This is only present when the directory sidebar is disabled.