It can be done !
Have you given any thought as to how the gasket will seal there? That is a gasketed joint.
Print