Salam
there are many opinions about ghosts or spirits. What tell the Quran?
In the Quran we found the word 'Jinn' (from its root implies something which remains hidden, covered or concealed)
-they can see you from where you can not see them 7.27
-Quran mentions two separate creations ins and ginn 55.14-16
-The creation of man with clay (salsalin), black mud (ham'in) altered (masnun) (15:26) and thereafter, extract fluid (semen) 32:8, the creation of the Jinn from 'nare-sumun' (15:27) and 'mariji-min nar' (55:15).
- the word nar don't must understood literally - it seems the Quran describe the ginn with nar, for the better understanding (7th century)
15.27, and 55.15 points to something unsteady, ferocity- often interpreted as smokeless fire, scorching wind
-The creation of the Jinn was initiated before the creation of humankind. 15.26/27
-the term majnun in his primary meaning in the Quran is 'possession by the Ginn' see 15.6, 37.36
- the Jinn can move rapid throughout space 72.8/9
-the Jinn live and die 46/18
-Interaction between man and Ginn is recognised. positive 34:13, 27:39-40 or negative 6:128
So from my point of view, the Quran support the existence of spirits= Ginns
Salam