Large Wiley Window Glued Inside?

Good morning new friends!
I'm hoping to have large portholes on the sides of my foamie next to my bed. Two-foot-squared.
Could I glue the wiley window frame directly to the inside of my foamie? The walls are 1.5"
Should I make some framing, or reinforce a larger section of the foamie with plywood, around the window?
PS. To get this in before people ask: I'm planning on making the outside of the frame shorter so I can still pull the glass out without it getting stopped by the ceiling.
I'm hoping to have large portholes on the sides of my foamie next to my bed. Two-foot-squared.
Could I glue the wiley window frame directly to the inside of my foamie? The walls are 1.5"
Should I make some framing, or reinforce a larger section of the foamie with plywood, around the window?
PS. To get this in before people ask: I'm planning on making the outside of the frame shorter so I can still pull the glass out without it getting stopped by the ceiling.