Let me tell you a little bit of background first. At first, I have found a video on ATHLEAN-X, which is this one, that warns against doing doing barbell upright row. This is because the exercise will causes shoulders to internally rotate while lifting weights and in turns leads to shoulder impingement. At around 3:58, the trainer goes on to say that dumbbell version of the upright row allow shoulder to externally rotate. So, what I am after is an instruction about to do it correctly.
The first one I've found by googling is from bodybuilding. But by looking at the image, I think it's not quite right because it looks like shoulder would still internally rotate if I follow this instruction. The second one clearly rotate shoulder externally, but I doubt whether doing it this way will work the same muscle groups as it supposed to be in the barbell version. Specifically, it doesn't look like that it will put the load on trapezius that much.