A simple solution that may meet your need:


[![enter image description here][1]][1]


The area where the light is placed is surrounded by a big box (selected below) with an open face where the portal is placed.

[![enter image description here][2]][2]

The node tree for this surrounding box is simply a *"glass"* with IOR set to one (flat transparency).

[![enter image description here][3]][3]

The light source (an area) also has a node tree:

[![enter image description here][4]][4]

It is emission shader except when the transmission depth (what comes from glass/transmissive materials) is at least 1.

Additionally, the surrounding box has a *solidify* modifier, as if not the light may go through it at the intersection with the floor plane.

There is some limitations, depending on the shape of the surrounding box (from which points of view you want to catch that). For instance the cube's shadow is visible outside of the portal.

[<img src="https://blend-exchange.giantcowfilms.com/embedImage.png?bid=MwLMGSXR" />](https://blend-exchange.giantcowfilms.com/b/MwLMGSXR/)

  [1]: https://i.sstatic.net/XCORi.gif
  [2]: https://i.sstatic.net/TWBnw.jpg
  [3]: https://i.sstatic.net/b4bDu.jpg
  [4]: https://i.sstatic.net/Jp3Qm.jpg