Here's my take... It looks like a HOT ROD Thang... I'll splain..
I think they are still made. What this looks like is a switch assembly. One side ..the side that your showing has the rubber or what ever bumpers in the housing... (3). The mate is a 3 contact switch....shaped the same and mouted on the door. When you shut the door, you mash the two together make the switch closure.
Thses were used on Custom cars and I think they are still available. They have many different uses.