I know this is old post. But since I didn't find better/simpler answer elsewhere - I'll post my solution. Done entirely in cv2.
It can be done - it's just ridiculous way to do it.
You start up in full screen mode, then move and resize your window.
After that it is titlebarless and borderless.
In my solution I used also TOPMOST property to lock stream preview on top of everything (I use it to monitor sick grandma while I work).
stream_window = 'RPi3 IR cam'
window_width = 240
window_height = 180
cv2.namedWindow(
stream_window,
flags=(cv2.WINDOW_NORMAL | cv2.WINDOW_GUI_NORMAL | cv2.WINDOW_FREERATIO))
cv2.setWindowProperty(stream_window, cv2.WND_PROP_TOPMOST, 1.0)
cv2.setWindowProperty(stream_window, cv2.WND_PROP_FULLSCREEN, 1.0)
cv2.resizeWindow(
stream_window,
window_width,
window_height)
cv2.moveWindow(
stream_window,
screen_width - window_width,
screen_height - window_height - 40)
After that just call cv2.imshow with contents you need.
Cheers :)