import bpy
# Switch the main viewport to the rendered result for visual validation.
for a in bpy.context.screen.areas:
    if a.type=='VIEW_3D':
        a.type='IMAGE_EDITOR'
        a.spaces.active.image=bpy.data.images.get('Render Result')
        break
result={'areas':[(a.type,a.ui_type if hasattr(a,'ui_type') else '') for a in bpy.context.screen.areas], 'render_image':bpy.data.images.get('Render Result').size[:] if bpy.data.images.get('Render Result') else None}