Welcome! Your best method for Mac-to-Mac is probably Luna Display. Luna Display | Turn your Mac or iPad into a second display
Recent experience on the forum: