That was as awkward as being spotted leaving a love hotel in the morning.

Literal

That [topic-は] morning [at-に] love-hotel [from-から] exit [obj-を] witnessed-[passive-される] as-if awkward-was.

ラブホ is the clipped slang for ラブホテル 'love hotel.' かのごとく 'as if / as though' is a literary/formal simile marker (classical かの + ごとく). 目撃される 'to be witnessed' is the formal passive of 目撃する. 気まずい 'awkward / uncomfortable.' The humor lies in the contrast between the literary かのごとく and the vulgar ラブホ context.