If it’s electric you can put one just about anywhere. :)
if there were a way to properly/safely VENT it and provide adequate heat resistance... an 'artificial' one that is for looks only wouldn't present such a hazard ...
Here is an electric fireplace with wood chase I designed for a friend. Just be sure to follow the clearance allowances with your particular model.
I was wanting to put an electric insert fireplace into an out corner media cabinet. I was thinking about removing the doors and sliding one in there. I wasn't sure if that was possible or not.