How can I display heads with Xray?
Which xray? There's not one, but hundreds of different ones.
Which one do you refer to? Is it in a client, if so which one? If no, what's your Xray's name / Who is it from?
For some you can select the blocks (including heads) that are to be displayed.
For the sausage client https://www.wurstclient.net