How to play split screen minecraft on the same PC?

Solution 1:

for this you may require 2 accounts for Minecraft java version. You set up a server on your computer and then open up 2 Minecraft windows and play.

An alternative solution would be using the Bedrock edition of Minecraft.