Welcome Geoman. Is it possible that the horizontal rain happened before the window opened? If water got into the wiring somewhere, possibly through the sunroof, that might have caused a short and opened the window, although I haven't heard of this happening before. There have been other problems caused by a leaking sunroof.