They normally use silicone as the stuff you suggested is used to stick carpets etc yes .. but around the window if the carpet is not bonded in at the same time as putting in the glass it will come away.
So the edge it with silicone sealer
Most good conversion companies prefer to line and carpet at the same time for a better finish