Hello Karim,
as I understand you correct: You want to hide an SAP session resp. make the window complete invisible, also from the taskbar. Then you want to control the UI of the invisible window, do your task, in the context of the user's name but without his control and knowledge. I think it is basically not a good idea to do this kind of operation. This scenario sounds more like a task in the backend.
Cheers
Stefan