Drawing a single-color outline over other objects is possible. One way is to increase the Render Queue
at the outline material to draw the outline after your foreground object. This requires that the foreground object does not write to the Z buffer though.
The last part of the video, having other objects determine outline color of the part they are overlapping: this is not possible, that would require a post processing effect, so a whole different pipeline.