The joke is a pun. Monocles are like eyeglasses or spectacles for one eye. Two of them would make a pair of spectacles.  'Spectacle' can also mean 'a commotion' or 'a scene'.
Two monocles were making love in front of a window and made spectacles of themselves .