Shadow catcher setup

I was thinking, if i can get to the lightmap of the given plane/surface and use that to control opacity. (i don’t need dynamic features for now). Could it be possible?

Just used a gradient black and white map for opacity on the plane - got sort-of the desired look.

But the discusion is still open in my opinion, if there is a way to get only shadows the way you can for compositing.